package adata;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class ApplicantFormAction extends Action{
	
	public ActionForward execute(ActionMapping mapping, ActionForm form, 
		    HttpServletRequest request, HttpServletResponse response){
		
		ApplicantForm ad = (ApplicantForm) form;
		
		if (form != null) {	
		    return (mapping.findForward(Constants.SUCCESS_KEY));
		}
		else {	
		    return (mapping.findForward(Constants.FAILURE_KEY));	
		}
		
		
	}
}
